/*
 * @Author: li bo
 * @Date: 2025/08/15 11:22:25
 * @LastEditors: li bo
 * @Description: "播放列表歌曲关联模型"
 */
module.exports = (sequelize, Sequelize) => {
    return sequelize.define("play_list_songs", {
        position: {
            type: Sequelize.INTEGER,
            comment: '播放列表歌曲位置',
            defaultValue: 0,
        },

        addTime: {
            type: Sequelize.DATE,
            comment: '添加时间',
            defaultValue: Sequelize.NOW,
            field: 'add_time',
        },
    }, {
        tableName: 'play_list_songs',
        comment: '播放列表歌曲关联表',
        indexes: [
            {
                fields: ['position']
            }
        ]
    })
}
